package com.nsu.cl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nsu.cl.pojo.CouresSelection;
import com.nsu.cl.service.CouresSelectionService;
import com.nsu.cl.mapper.CouresSelectionMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

/**
 * @author 52618
 * @description 针对表【coures_selection(选课表)】的数据库操作Service实现
 * @createDate 2023-02-16 14:21:02
 */
@Service
@Transactional
public class CouresSelectionServiceImpl extends ServiceImpl<CouresSelectionMapper, CouresSelection>
        implements CouresSelectionService {

    @Override
    public IPage<CouresSelection> getCouresSelectionByOpr(Page<CouresSelection> pageParam, CouresSelection couresSelection) {

        Page<CouresSelection> page = baseMapper.getInfo(pageParam, couresSelection);

        return page;
    }

    @Override
    public CouresSelection getCouresSelectionById(Long id) {
        return baseMapper.getInfoById(id);
    }
}




